Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize create_matcherror more in other rules #4408

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

cavcrosby
Copy link
Contributor

When working on the var-naming rule the other day, I wondered why this rule didn't use the create_matcherror method like other rules. Hence, to keep consistent with other rules, I added the method to rules still explicitly creating MatchError instances.

@cavcrosby cavcrosby requested a review from a team as a code owner November 16, 2024 00:02
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from af57bd0 to 54f255a Compare November 16, 2024 15:14
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from 54f255a to fe6e7eb Compare November 21, 2024 14:46
@ssbarnea ssbarnea added the bug label Nov 22, 2024
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from b7368ff to 53bdc4b Compare November 22, 2024 14:21
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from 53bdc4b to 6cb0612 Compare November 24, 2024 23:17
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from 6cb0612 to 4a913fe Compare November 25, 2024 14:27
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from 4a913fe to 13dc9da Compare November 26, 2024 14:05
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from 13dc9da to d486b25 Compare November 26, 2024 23:53
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from d486b25 to 942412b Compare December 1, 2024 19:36
@cavcrosby cavcrosby force-pushed the utilize-create-matcherror branch from 942412b to 93196a2 Compare December 2, 2024 14:52
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

The imports of the MatchError class have been moved under the
TYPE_CHECKING conditional because the rules changed now only rely solely
on the class for typing, and no longer require it at runtime.
@ssbarnea ssbarnea enabled auto-merge (squash) December 6, 2024 12:56
@ssbarnea ssbarnea merged commit 2726e13 into ansible:main Dec 6, 2024
29 checks passed
@cavcrosby cavcrosby deleted the utilize-create-matcherror branch December 6, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants